﻿using System;

namespace Scheme.Net.Runtime
{
    public class SchemeNumber
    {
        public byte Radix { get; private set; }
        public char Exactness { get; private set; }

        public string Re { get; private set; }
        public string Im { get; private set; }

        public SchemeNumber(byte radix, char exactness, string re, string im)
        {
            this.Radix = radix;
            this.Exactness = exactness;
            this.Re = re;
            this.Im = im;
        }

        public override string ToString()
        {
            return string.Format("Number, base {0}, exactness {1}, value {2} + {3}i", Radix, Exactness, Re, Im);
        }
    }
}